package com.example.demo.controller;

import com.example.demo.DemoApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @RequestMapping("/sayhi")
    public String sayHi(){
        return "你好，世界。";
    }
    @RequestMapping("/close")
    public void close(){
        DemoApplication.applicationContext.close();
    }
}
